﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace copy
{
    public partial class addForm : Form
    {
        public addForm()
        {
            InitializeComponent();
        }

        public copyNotice Copynotice
        {
            get { return copynotice; }
        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            copyNotice cn=new copyNotice();
            cn.Notice = txtNotice.Text;
            cn.Text = txtText.Text;
            copynotice = cn;
            this.DialogResult = DialogResult.OK;
        }
        
        private copyNotice copynotice;

        private void addForm_Load(object sender, EventArgs e)
        {
            Form f = this.Owner;
            this.Opacity = f.Opacity;
            this.Icon = f.Icon;
            // this.StartPosition = FormStartPosition.CenterScreen;
        }

    }
}
